package com.zbbt.sportslottery.ui.widget;

import android.content.Context;
import android.graphics.Canvas;
import android.util.AttributeSet;
import android.widget.TextView;

public class RotateTextView extends TextView{

	public RotateTextView(Context context) {
		super(context);
	}
	public RotateTextView(Context context,AttributeSet attributeSet){
		super(context,attributeSet);
	}
   @Override
protected void onDraw(Canvas canvas) {
	   //倾斜度45,上下左右居中
	   canvas.rotate(45, getMeasuredWidth()/2, getMeasuredHeight()/2);
	   super.onDraw(canvas);
}	
	

}
